//
//  CoreDataManager.h
//  CoreDataLHY
//
//  Created by lhy on 2021/1/8.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

NS_ASSUME_NONNULL_BEGIN

@interface CoreDataManager : NSObject

+ (instancetype)sharedCoreDataManager;
/// 增
- (void)insertData:(NSDictionary *)info
           handler:(void(^)(BOOL isSaved, NSError *error))handler;
/// 删
- (void)deleteData;
/// 改
- (void)updateData;
/// 查
- (void)fetchData;

@end

NS_ASSUME_NONNULL_END
